/* Class133_Sub4 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class133_Sub4 extends Class133
{
    public static int anInt3571;
    public int anInt3572;
    public int anInt3573;
    public int anInt3574 = 0;
    public int anInt3575;
    public static int anInt3576;
    public int anInt3577;
    public static int anInt3578 = 128;
    public static int anInt3579 = 0;
    public Class148_Sub1 aClass148_Sub1_3580;
    public static Class148_Sub1[] aClass148_Sub1Array3581;
    public static int anInt3582;
    public static int anInt3583;
    public static int anInt3584;
    public static int anInt3585;
    public int anInt3586;
    public int anInt3587;
    public int anInt3588;
    public static int anInt3589;
    public static int anInt3590;
    public boolean aBoolean3591;
    public int anInt3592;
    public int anInt3593;
    public int anInt3594;
    public int anInt3595;
    public static int anInt3596;
    public Class46 aClass46_3597;
    public int anInt3598;
    public static int anInt3599;
    public static int anInt3600;
    public int anInt3601;
    public static int anInt3602;
    public static int anInt3603;
    
    public Class133 method1834(byte arg0) {
	Class133 class133;
	try {
	    int i = 124 / ((20 - arg0) / 37);
	    anInt3583++;
	    class133 = method1841(false, 0);
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       "nb.HA(" + arg0 + ')');
	}
	return class133;
    }
    
    public void method1790(int arg0, int arg1, int arg2, int arg3, int arg4) {
	try {
	    anInt3602++;
	    method1841(true, 0);
	    int i = 81 / ((-73 - arg4) / 40);
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("nb.EA(" + arg0 + ',' + arg1
						+ ',' + arg2 + ',' + arg3 + ','
						+ arg4 + ')'));
	}
    }
    
    public static void method1835(int arg0) {
    while_1203_:
	do {
	while_1202_:
	    do {
		do {
		    try {
			Class14_Sub8_Sub20.anInt4427++;
			if (arg0 < -72)
			    break;
		    } catch (RuntimeException runtimeexception) {
			break while_1202_;
		    }
		    return;
		} while (false);
		try {
		    anInt3585++;
		    Class55.aClass14_Sub10_Sub1_891.method843(0, 42);
		    Class55.aClass14_Sub10_Sub1_891.method817(0L, 99);
		} catch (RuntimeException runtimeexception) {
		    break;
		}
		break while_1203_;
	    } while (false);
	    Throwable throwable = new Throwable();
	    throw Class14_Sub8_Sub14.method554(throwable,
					       "nb.FA(" + arg0 + ')');
	} while (false);
    }
    
    public void method1836(boolean arg0) {
	try {
	    anInt3589++;
	    if (null != aClass148_Sub1_3580)
		Class151.method2030(aClass148_Sub1_3580, anInt3593, anInt3574,
				    anInt3592);
	    aClass148_Sub1_3580 = null;
	    anInt3586 = -1;
	    if (arg0 != true)
		method1792(-39, 15, -6, -54, 91, 28, -127, 121, -126L);
	    anInt3573 = -1;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       "nb.JA(" + arg0 + ')');
	}
    }
    
    public static void method1837(int arg0) {
	try {
	    aClass148_Sub1Array3581 = null;
	    if (arg0 != 0)
		method1840((byte) 109);
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       "nb.DA(" + arg0 + ')');
	}
    }
    
    public void method1792(int arg0, int arg1, int arg2, int arg3, int arg4,
			   int arg5, int arg6, int arg7, long arg8) {
    while_1205_:
	do {
	while_1204_:
	    do {
		Class133 class133;
		do {
		    try {
			anInt3590++;
			class133 = method1834((byte) 123);
			if (class133 != null)
			    break;
		    } catch (RuntimeException runtimeexception) {
			break while_1204_;
		    }
		    return;
		} while (false);
		try {
		    class133.method1792(arg0, arg1, arg2, arg3, arg4, arg5,
					arg6, arg7, arg8);
		    anInt3598 = class133.method1781();
		} catch (RuntimeException runtimeexception) {
		    break;
		}
		break while_1205_;
	    } while (false);
	    Throwable throwable = new Throwable();
	    throw Class14_Sub8_Sub14.method554(throwable,
					       ("nb.K(" + arg0 + ',' + arg1
						+ ',' + arg2 + ',' + arg3 + ','
						+ arg4 + ',' + arg5 + ','
						+ arg6 + ',' + arg7 + ','
						+ arg8 + ')'));
	} while (false);
    }
    
    public static void method1838(int arg0, int arg1, int arg2, int arg3,
				  int arg4, byte arg5, int arg6, int arg7) {
    while_1208_:
	do {
	while_1207_:
	    do {
	    while_1206_:
		do {
		    do {
			try {
			    anInt3600++;
			    if (arg1 < 1 || arg2 < 1
				|| -103 > (arg1 ^ 0xffffffff)
				|| (arg2 ^ 0xffffffff) < -103)
				break while_1206_;
			    if (Class128.method1755(arg5 + 130068541)
				|| (0x2 & (Class14_Sub8_Sub4
					   .aByteArrayArrayArray4142[0][arg1]
					   [arg2])
				    ^ 0xffffffff) != -1)
				break;
			    int i = arg3;
			    if ((0x8 & (Class14_Sub8_Sub4
					.aByteArrayArrayArray4142[arg3][arg1]
					[arg2])
				 ^ 0xffffffff)
				!= -1)
				i = 0;
			    if ((i ^ 0xffffffff)
				== (Class142.anInt2295 ^ 0xffffffff))
				break;
			} catch (RuntimeException runtimeexception) {
			    break while_1207_;
			}
			return;
		    } while (false);
		    try {
			int i = arg3;
			if (-4 < (i ^ 0xffffffff)
			    && (0x2
				& (Class14_Sub8_Sub4.aByteArrayArrayArray4142
				   [1][arg1][arg2])) == 2)
			    i++;
			Class146.method1993(i, arg6, arg2, arg3, 4, arg1,
					    (Class14_Sub21.aClass32Array3100
					     [arg3]));
			if (0 <= arg4) {
			    boolean bool = Class148.aBoolean2372;
			    Class148.aBoolean2372 = true;
			    Class55.method1235(false, arg7, false, (byte) 50,
					       (Class14_Sub21.aClass32Array3100
						[arg3]),
					       i, arg2, arg0, arg1, arg4,
					       arg3);
			    Class148.aBoolean2372 = bool;
			}
		    } catch (RuntimeException runtimeexception) {
			break while_1207_;
		    }
		} while (false);
		if (arg5 != 74)
		    method1835(-14);
		break while_1208_;
	    } while (false);
	    Throwable throwable = new Throwable();
	    throw Class14_Sub8_Sub14.method554(throwable,
					       ("nb.GA(" + arg0 + ',' + arg1
						+ ',' + arg2 + ',' + arg3 + ','
						+ arg4 + ',' + arg5 + ','
						+ arg6 + ',' + arg7 + ')'));
	} while (false);
    }
    
    public static void method1839(Class133_Sub1_Sub1 arg0, byte arg1) {
	try {
	    anInt3596++;
	    Class14_Sub3 class14_sub3
		= ((Class14_Sub3)
		   Class88.aClass55_1398.method1230(arg0.aClass124_4922
							.method1692(0),
						    (byte) -125));
	    if (null == class14_sub3)
		Class12.method213(arg0.anIntArray3476[0],
				  arg0.anIntArray3443[0], null, (byte) -35,
				  Class14_Sub2_Sub3.anInt3785, arg0, null, 0);
	    else
		class14_sub3.method452(18631);
	    if (arg1 != 7)
		anInt3584 = -26;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("nb.IA("
						+ (arg0 != null ? "{...}"
						   : "null")
						+ ',' + arg1 + ')'));
	}
    }
    
    public static void method1840(byte arg0) {
	try {
	    Class14_Sub29.aClass148_Sub1Array3265 = null;
	    Class150.aClass14_Sub2_Sub19Array2417 = null;
	    Class14_Sub8_Sub18.aClass14_Sub2_Sub19Array4385 = null;
	    Class76.aClass14_Sub2_Sub19Array1191 = null;
	    Class106.aClass148Array1777 = null;
	    Class133_Sub3.aClass14_Sub2_Sub16_3567 = null;
	    Class14_Sub8_Sub17.aClass14_Sub2_Sub19Array4366 = null;
	    Class14_Sub2_Sub15.aClass14_Sub2_Sub19Array3958 = null;
	    Class133_Sub1_Sub1.aClass148_Sub1Array4938 = null;
	    Class35.aClass14_Sub2_Sub19Array596 = null;
	    Class149.aClass14_Sub2_Sub19_2384 = null;
	    Class133_Sub5.aClass14_Sub2_Sub19Array3609 = null;
	    Class32.aClass148_Sub1Array540 = null;
	    Class56_Sub1.aClass14_Sub2_Sub16_3320 = null;
	    int i = -41 / ((-14 - arg0) / 62);
	    Class131.aClass14_Sub2_Sub16_Sub1_2160 = null;
	    Class14_Sub8_Sub25.aClass14_Sub2_Sub19_4508 = null;
	    Class14_Sub2_Sub17.aClass14_Sub2_Sub19Array4013 = null;
	    Class84.aClass14_Sub2_Sub16_1344 = null;
	    Class98.aClass14_Sub2_Sub19Array1669 = null;
	    Class110.aClass148Array1848 = null;
	    Class97.aClass148_Sub1Array1651 = null;
	    Class133.aClass14_Sub2_Sub19_Sub1Array2186 = null;
	    Class14_Sub20.aClass14_Sub2_Sub19Array3098 = null;
	    anInt3571++;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       "nb.BA(" + arg0 + ')');
	}
    }
    
    public int method1781() {
	int i;
	try {
	    anInt3576++;
	    i = anInt3598;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception, "nb.H()");
	}
	return i;
    }
    
    public Class133 method1841(boolean arg0, int arg1) {
    while_1209_:
	do {
	    boolean bool;
	    Class79 class79;
	    do {
		Class133 class133;
		try {
		    anInt3599++;
		    bool = (Class114.anIntArrayArrayArray1896
			    != Class149.anIntArrayArrayArray2391);
		    class79 = Class79.method1377((byte) -106, anInt3587);
		    if (null != class79.anIntArray1276)
			class79 = class79.method1391(1);
		    if (null != class79)
			break;
		    if (!bool)
			method1836(true);
		    class133 = null;
		} catch (RuntimeException runtimeexception) {
		    break while_1209_;
		}
		return class133;
	    } while (false);
	    int i;
	    int i_0_;
	    int i_1_;
	    int i_2_;
	    int i_3_;
	    int i_4_;
	    boolean bool_5_;
	    do {
		Class133 class133;
		try {
		    int i_6_ = 0x3 & anInt3588;
		    if (i_6_ == 1 || -4 == (i_6_ ^ 0xffffffff)) {
			i = class79.anInt1245;
			i_0_ = class79.anInt1227;
		    } else {
			i = class79.anInt1227;
			i_0_ = class79.anInt1245;
		    }
		    i_1_ = anInt3572 + (i >> -1800528927);
		    i_2_ = anInt3572 + (i + 1 >> 1207399841);
		    i_3_ = (1 + i_0_ >> 903504193) + anInt3595;
		    i_4_ = anInt3595 - -(i_0_ >> -1252978143);
		    method1842(128 * i_4_, i_1_ * 128, (byte) -112);
		    if (arg1 != 0)
			anInt3584 = 84;
		    bool_5_
			= (!bool && class79.aBoolean1253
			   && (anInt3573 != class79.anInt1257
			       || ((anInt3577 ^ 0xffffffff) != (anInt3586
								^ 0xffffffff)
				   && ((Class89.anInt1413 ^ 0xffffffff)
				       <= -3))));
		    if (!arg0 || bool_5_)
			break;
		    class133 = null;
		} catch (RuntimeException runtimeexception) {
		    break while_1209_;
		}
		return class133;
	    } while (false);
	    int i_7_;
	    int i_8_;
	    int i_9_;
	    boolean bool_10_;
	    Class86 class86;
	    do {
		Class133 class133;
		try {
		    int[][] is = Class114.anIntArrayArrayArray1896[anInt3601];
		    i_7_ = (anInt3572 << 1795943559) + (i << 1076634470);
		    i_8_ = (i_0_ << 1779405958) + (anInt3595 << 686850407);
		    int[][] is_11_ = null;
		    i_9_ = is[i_2_][i_3_] + (is[i_1_][i_3_] + is[i_1_][i_4_]
					     - -is[i_2_][i_4_]) >> -2107777150;
		    if (bool)
			is_11_ = Class149.anIntArrayArrayArray2391[0];
		    else if (anInt3601 < 3)
			is_11_
			    = Class114.anIntArrayArrayArray1896[1 + anInt3601];
		    if (bool_5_)
			Class151.method2030(aClass148_Sub1_3580, anInt3593,
					    anInt3574, anInt3592);
		    bool_10_ = null == aClass148_Sub1_3580;
		    if (null == aClass46_3597)
			class86 = class79.method1383(i_9_, anInt3594, is,
						     is_11_, false, anInt3588,
						     true, bool_5_,
						     (!bool_10_
						      ? aClass148_Sub1_3580
						      : (Class63
							 .aClass148_Sub1_999)),
						     i_7_, i_8_);
		    else
			class86
			    = class79.method1384(i_9_, anInt3594, anInt3577,
						 is_11_, i_7_, anInt3588,
						 bool_5_,
						 (!bool_10_
						  ? aClass148_Sub1_3580
						  : (Class63
						     .aClass148_Sub1_999)),
						 i_8_, is, aClass46_3597, 0);
		    if (class86 != null)
			break;
		    class133 = null;
		} catch (RuntimeException runtimeexception) {
		    break while_1209_;
		}
		return class133;
	    } while (false);
	    Class133 class133;
	    try {
		if (bool_5_) {
		    if (bool_10_)
			Class63.aClass148_Sub1_999
			    = class86.aClass148_Sub1_1386;
		    int i_12_ = 0;
		    if (0 != anInt3601) {
			int[][] is = Class114.anIntArrayArrayArray1896[0];
			i_12_ = i_9_ - (is[i_1_][i_3_] + (is[i_2_][i_4_]
							  + (is[i_1_][i_4_]
							     + is[i_2_][i_3_]))
					>> 436705378);
		    }
		    Class148_Sub1 class148_sub1 = class86.aClass148_Sub1_1386;
		    if (aBoolean3591 && Class151.method2032(class148_sub1,
							    i_7_, i_12_, i_8_))
			aBoolean3591 = false;
		    if (!aBoolean3591) {
			Class151.method2026(class148_sub1, i_7_, i_12_, i_8_);
			anInt3592 = i_8_;
			anInt3593 = i_7_;
			anInt3574 = i_12_;
			if (bool_10_)
			    Class63.aClass148_Sub1_999 = null;
			aClass148_Sub1_3580 = class148_sub1;
		    }
		    anInt3586 = anInt3577;
		    anInt3573 = class79.anInt1257;
		}
		class133 = class86.aClass133_1379;
	    } catch (RuntimeException runtimeexception) {
		break;
	    }
	    return class133;
	} while (false);
	Throwable throwable = new Throwable();
	throw Class14_Sub8_Sub14.method554(throwable,
					   "nb.CA(" + arg0 + ',' + arg1 + ')');
    }
    
    public Class133_Sub4(int arg0, int arg1, int arg2, int arg3, int arg4,
			 int arg5, int arg6, boolean arg7, Class133 arg8) {
	anInt3573 = -1;
	aClass148_Sub1_3580 = null;
	anInt3593 = 0;
	anInt3586 = -1;
	aBoolean3591 = true;
	anInt3598 = -32768;
	anInt3592 = 0;
    while_1201_:
	do {
	while_1200_:
	    do {
	    while_1199_:
		do {
		    do {
			try {
			    anInt3587 = arg0;
			    anInt3601 = arg3;
			    anInt3595 = arg5;
			    anInt3588 = arg2;
			    anInt3594 = arg1;
			    anInt3572 = arg4;
			    if (arg8 != null) {
				if (arg8 instanceof Class133_Sub4)
				    ((Class133_Sub4) arg8).method1836(true);
				else {
				    Class79 class79
					= Class79.method1377((byte) -106,
							     anInt3587);
				    if (class79.anIntArray1276 != null)
					class79 = class79.method1391(1);
				    if (null != class79)
					Class68.method1305(anInt3572,
							   anInt3588, 0,
							   class79, anInt3594,
							   0, anInt3595,
							   anInt3601,
							   (byte) 98);
				}
			    }
			    if (0 == (arg6 ^ 0xffffffff))
				break while_1199_;
			    aClass46_3597 = Class41.method1129(arg6, -123);
			    anInt3577 = 0;
			    anInt3575 = -1 + Class14_Sub2_Sub20.anInt4064;
			    if (aClass46_3597.anInt753 != 0 || arg8 == null
				|| !(arg8 instanceof Class133_Sub4))
				break;
			    Class133_Sub4 class133_sub4 = (Class133_Sub4) arg8;
			    if (aClass46_3597 != class133_sub4.aClass46_3597)
				break;
			    anInt3577 = class133_sub4.anInt3577;
			    anInt3575 = class133_sub4.anInt3575;
			} catch (RuntimeException runtimeexception) {
			    break while_1200_;
			}
			return;
		    } while (false);
		    try {
			if (arg7 && -1 != aClass46_3597.anInt760) {
			    anInt3577
				= (int) (Math.random()
					 * (double) (aClass46_3597
						     .anIntArray768).length);
			    anInt3575
				-= (int) ((double) (aClass46_3597.anIntArray763
						    [anInt3577])
					  * Math.random());
			}
		    } catch (RuntimeException runtimeexception) {
			break while_1200_;
		    }
		} while (false);
		if (arg8 != null)
		    method1841(true, 0);
		break while_1201_;
	    } while (false);
	    Throwable throwable = new Throwable();
	    throw Class14_Sub8_Sub14.method554(throwable,
					       ("nb.<init>(" + arg0 + ','
						+ arg1 + ',' + arg2 + ','
						+ arg3 + ',' + arg4 + ','
						+ arg5 + ',' + arg6 + ','
						+ arg7 + ','
						+ (arg8 != null ? "{...}"
						   : "null")
						+ ')'));
	} while (false);
    }
    
    public void method1842(int arg0, int arg1, byte arg2) {
	try {
	    anInt3582++;
	    if (arg2 != -112)
		method1839(null, (byte) -124);
	    if (null != aClass46_3597) {
		int i = Class14_Sub2_Sub20.anInt4064 - anInt3575;
		if ((i ^ 0xffffffff) < -101 && aClass46_3597.anInt760 > 0) {
		    int i_13_;
		    for (i_13_ = (-aClass46_3597.anInt760
				  + aClass46_3597.anIntArray768.length);
			 ((anInt3577 ^ 0xffffffff) > (i_13_ ^ 0xffffffff)
			  && i > aClass46_3597.anIntArray763[anInt3577]);
			 anInt3577++)
			i -= aClass46_3597.anIntArray763[anInt3577];
		    if ((i_13_ ^ 0xffffffff) >= (anInt3577 ^ 0xffffffff)) {
			int i_14_ = 0;
			for (int i_15_ = i_13_;
			     i_15_ < aClass46_3597.anIntArray768.length;
			     i_15_++)
			    i_14_ += aClass46_3597.anIntArray763[i_15_];
			i %= i_14_;
		    }
		}
	    while_1210_:
		do {
		    for (;;) {
			if (i <= aClass46_3597.anIntArray763[anInt3577])
			    break while_1210_;
			Class14_Sub8_Sub6.method509(arg1, anInt3577, 86, false,
						    aClass46_3597, arg0);
			i -= aClass46_3597.anIntArray763[anInt3577];
			anInt3577++;
			if ((anInt3577 ^ 0xffffffff)
			    <= (aClass46_3597.anIntArray768.length
				^ 0xffffffff)) {
			    anInt3577 -= aClass46_3597.anInt760;
			    if (-1 < (anInt3577 ^ 0xffffffff)
				|| ((anInt3577 ^ 0xffffffff)
				    <= (aClass46_3597.anIntArray768.length
					^ 0xffffffff)))
				break;
			}
		    }
		    aClass46_3597 = null;
		} while (false);
		anInt3575 = Class14_Sub2_Sub20.anInt4064 + -i;
	    }
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("nb.AA(" + arg0 + ',' + arg1
						+ ',' + arg2 + ')'));
	}
    }
}
